//
//  AIHomeIconSButton.m
//  aixianfeng
//
//  Created by wangwei on 2016/12/23.
//  Copyright © 2016年 lijiangbo. All rights reserved.
//

#import "AIHomeIconSButton.h"

@implementation AIHomeIconSButton


- (CGRect)imageRectForContentRect:(CGRect)contentRect {
    CGFloat imageX,imageY,imageW,imageH;
    imageX = 0;
    imageY = 0;
    imageW = contentRect.size.width;
    imageH = contentRect.size.height * 0.7;
    
    return CGRectMake(imageX, imageY, imageW, imageH);
}

- (CGRect)titleRectForContentRect:(CGRect)contentRect {

    CGFloat titleX,titleY,titleW,titleH;
    titleX = 0;
    titleY = contentRect.size.height * 0.7;
    titleW = contentRect.size.width;
    titleH = contentRect.size.height * 0.3;
    
    return CGRectMake(titleX, titleY, titleW, titleH);
}


@end
